package com.example.demo.jpa.customer.repo;

import com.example.demo.jpa.customer.domain.Customer;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface CustomerRepository extends CrudRepository<Customer, Long> {


    List<Customer> findByLastName(String lastName);

    Customer findById(long id);

    void deleteCustomerById(long id);
}
